package com.container.app.testclasses.configurations;

import com.container.app.MContainer;
import com.container.app.MContainerConfiguration;
import com.container.app.annotations.InstanceTag;
import com.container.app.testclasses.providerexample.RandomPicking;
import com.container.app.testclasses.providerexample.RandomPickingIntProvider;
import com.container.app.utilities.Pair;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 7/13/12
 * Time: 9:43 AM
 */
public class ProviderConfiguration extends MContainerConfiguration {

    protected ProviderConfiguration(MContainer container) {
        super(container);
    }

    @Override
    public void configure() {
        addMapping(Integer.class, new Pair<Class, String>(InstanceTag.class, "max"), 1);
        addMapping(RandomPicking.class, null, RandomPickingIntProvider.class);
    }
}
